package com.example.evaluationserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value="评价")
public class Evaluation {
    @TableId
    @ApiModelProperty(value="主键")
    private String id;
    @TableField("post_id")
    @ApiModelProperty(value="发送方id")
    private String postId;
    @TableField("get_id")
    @ApiModelProperty(value="接收方id")
    private String getId;
    @TableField("order_id")
    @ApiModelProperty(value="订单id")
    private String orderId;
    @TableField("context")
    @ApiModelProperty(value="内容")
    private String context;
    @TableField("rating")
    @ApiModelProperty(value="评级 1好评2中评3差评")
    private int rating;
    @TableField("time")
    @ApiModelProperty(value="创建时间")
    private Date time;

    public Evaluation(){
    }

}
